import Taro, { Component } from '@tarojs/taro'
import Index from './pages/index'
import '@tarojs/async-await'

import './app.scss'

class App extends Component {

  config = {
    pages: [
      'pages/index/index',
      'pages/aboutus/aboutus',
      'pages/personCenter/personCenter',
      'pages/login/login',
      'pages/product/product',
      'pages/confirmOrder/confirmOrder'
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    },
    "tabBar": {
      "color": "#999999",
      "selectedColor": "#3189fe",
      "list": [
        {
          "pagePath": "pages/index/index",
          "text": "首页",
          "iconPath": "assets/images/homepage2.png",
          "selectedIconPath": "assets/images/homepage.png"
        },
        {
          "pagePath": "pages/personCenter/personCenter",
          "text": "个人中心",
          "iconPath": "assets/images/consultexpert2.png",
          "selectedIconPath": "assets/images/consultexpert.png"
        },
        {
          "pagePath": "pages/aboutus/aboutus",
          "text": "关于我们",
          "iconPath": "assets/images/about2.png",
          "selectedIconPath": "assets/images/about.png"
        }
      ]
    }
  }

  componentDidMount () {}

  componentDidShow () {}

  componentDidHide () {}

  componentDidCatchError () {}

  // 在 App 类中的 render() 函数没有实际作用
  // 请勿修改此函数
  render () {
    return (
      <Index />
    )
  }
}

Taro.render(<App />, document.getElementById('app'))
